import axios from './axios'
import resfulParamsToUrl from './resfulParamsToUrl'

//公告信息管理
//分页查询
export const announcementPageList = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/announcement/pageList', params),
		params,
	)
}
//新增
export const addAnnouncement = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/announcement/add', params),
		params,
	)
}
//删除
export const deleteAnnouncement = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/announcement/delete', params),
		params,
	)
}
//撤销
export const cancelannouncement = params => {
	axios.prototype._loading_ = false
	return axios.post(
		resfulParamsToUrl('/sys/noAuth/announcement/cancel', params),
		params,
	)
}
